<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>常量const</title>
</head>
<body>

<script type="text/javascript">

    /*Err：Missing initializer in const declaration*/
    /*const numA;
    numA = 1;*/

    /*Err：Assignment to constant variable.*/
    /*const numB = 1;
    numB = 2;*/

    /*pass*/
    const numC = 1;
    console.log(numC);

</script>

</body>
</html>